-- GENERATED SPELL FOR [Orinoko Tuskbreaker] --


function spell0_30020(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(32064,pUnit)
pUnit:RegisterEvent('Sorts_30020', 577, 1)
end

function spell1_30020(pUnit, Event) --@Fishy Scent,n/a--
pUnit:FullCastSpellOnTarget(55937,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30020', 22000, 1)
end

function spell2_30020(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(55929,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30020', 5339, 1)
end

function spell3_30020(pUnit, Event) --@Summon Whisker,Self--
pUnit:FullCastSpellOnTarget(55946,pUnit)
pUnit:RegisterEvent('Sorts_30020', 564, 1)
end

function Sorts_30020(pUnit, Event)
local choix_sorts_30020 = math.random(0, 3)
if choix_sorts_30020 == 0 then
pUnit:RegisterEvent('spell0_30020', 1, 1)
end
if choix_sorts_30020 == 1 then
pUnit:RegisterEvent('spell1_30020', 1, 1)
end
if choix_sorts_30020 == 2 then
pUnit:RegisterEvent('spell2_30020', 1, 1)
end
if choix_sorts_30020 == 3 then
pUnit:RegisterEvent('spell3_30020', 1, 1)
end
end

function mob30020_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30020', math.random(1500, 3000), 1)
end

function mob30020_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30020_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30020_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30020, 1, 'mob30020_Action')
RegisterUnitEvent(30020, 2, 'mob30020_Leave')
RegisterUnitEvent(30020, 3, 'mob30020_Kill')
RegisterUnitEvent(30020, 4, 'mob30020_Die')
